package labox.innovation.gameserver.network.gameserverpackets;

import java.io.IOException;
import java.util.Set;

/**
 * 向登陆服务器发送已经在游戏服务上的账户信息
 *
 */
public class PlayerInGame extends GameServerBasePacket {
	
	public PlayerInGame(String player) {
		writeByte(0x02);
		writeShort(1);
		writeString(player);
	}

	public PlayerInGame(Set<String> players) {
		writeByte(0x02);
		writeShort(players.size());
		for (String pc : players)
			writeString(pc);
	}

	/* (non-Javadoc)
	 * @see net.sf.l2j.gameserver.gameserverpackets.GameServerBasePacket#getContent()
	 */
	@Override
	public byte[] getContent() throws IOException {
		return getBytes();
	}

}